#include<bits/stdc++.h>
using namespace std;
vector<int> r;
int main(){
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	int n,a;
	cin>>n;
	for(int i=1;i<=n;i++){
		cin>>a;
		r.push_back(a);
	}
	sort(r.begin(),r.end());
	int ans=n,l=0;
	for(int i=1;i<n;i++){
		if(r[i]>r[l]){
			l++;
			ans--;
		}
	}
	cout<<ans;
	return 0;
}
